﻿namespace Gonte.Workflow.Tasks
{
    public class Literal
        : ITask
    {
        #region Constructions

        public Literal()
        {
        }

        public Literal(string value)
        {
            _value = value;
        } 

        #endregion

        #region ITask Members

        public TaskResult Execute(TaskContext context)
        {
            TaskResult result = new TaskResult();
            result.Value = _value;

            return result;
        }

        #endregion

        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }

        private string _value;
    }
}
